﻿package rob.data{
	
	public class Material{
		public var name:String;
		private var _textured:Boolean;
		private var _gouraud:Boolean;
		private var _colour:RGB;
		
		public function Material(matName:String,textured:Boolean,gouraud:Boolean,colour:RGB):void{
			name = matName;
			_textured = textured;
			_gouraud = gouraud;
			_colour = colour;
		}
		
		public function get gouraud():Boolean{ return _gouraud;}
		public function get textured():Boolean{ return _textured;}
		public function get colour():RGB{ return _colour;}
		
		public function toString():String{
			return "Material: " +name+"("+_textured+",["+_colour+"])";
		}
	}
}